﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Manon.Repository.Extensions
{
    public class Filter
    {
        /// <summary>
        /// 并且=0，或者=1
        /// </summary>
        public FilterLogicEnum FilterLogic
        {
            get;
            set;
        } = FilterLogicEnum.AndAlso;

        /// <summary>
        /// 字段名
        /// </summary>
        public string Key
        {
            get;
            set;
        }

        /// <summary>
        /// 小于等于=0,大于等于=1，等于=2，以...结尾=3，以...开头=4，小于=5，大于=6，包含=7
        /// </summary>
        public FilterTypeEnum FilterType
        {
            get;
            set;
        } = FilterTypeEnum.Equal;

        /// <summary>
        /// 字段值
        /// </summary>
        public string Value
        {
            get;
            set;
        }
    }
}